36 std::map<NodeStateBlocksPtr, std::pair<FactorBasePtr, NodeStateBlocksPtr>> parents_;
51 NodeStateBlocksPtr node2,
52 const unsigned int max_graph_dist = 0);
56 std::set<NodeStateBlocksPtr>
getNeighborFrames(
const std::set<NodeStateBlocksPtr>& nodes);
61 NodeStateBlocksPtr node2,
62 const unsigned int max_graph_dist = 0)
Breadth-first search of the shortest path of factors between two nodes of the factor graph.
Definition: graph_search.h:32
static FactorBasePtrList shortestPath(NodeStateBlocksPtr node1, NodeStateBlocksPtr node2, const unsigned int max_graph_dist=0)
Computes the shortest path of factors between two nodes (see computeShortestPath())
Definition: graph_search.h:60
FactorBasePtrList computeShortestPath(NodeStateBlocksPtr node1, NodeStateBlocksPtr node2, const unsigned int max_graph_dist=0)
Computes the shortest path of factors between two nodes, up to a graph distance (0: unlimited)....
Definition: graph_search.cpp:27
std::set< NodeStateBlocksPtr > getNeighborFrames(const std::set< NodeStateBlocksPtr > &nodes)
Returns the not visited nodes sharing a factor with some nodes, storing their parents.
Definition: graph_search.cpp:70
~GraphSearch()
Destructor.
Definition: graph_search.cpp:25
GraphSearch()
Default constructor.
Definition: graph_search.cpp:23
Definition: capture_base.h:23